Skip to content

add unit test#12

Merged
ASafaeirad merged 1 commit intomainfrom
add-unit-test
Oct 17, 2025
Merged

add unit test#12
ASafaeirad merged 1 commit intomainfrom
add-unit-test

Conversation

@ASafaeirad
Copy link
Member

This pull request introduces automated testing to the project by adding Vitest as the testing framework and integrating test execution into both the development workflow and continuous integration. The changes ensure that tests are run before code is pushed and during CI, and all necessary dependencies for Vitest and its ecosystem are included.

Testing integration and automation:

  • Added a test script using Vitest to package.json, and included Vitest as a dev dependency. [1] [2]
  • Updated the CI workflow in .github/workflows/verify.yaml to run tests during the verification job.
  • Added a pre-push hook in .husky/pre-push to automatically run tests before code is pushed.

Dependency management:

  • Updated pnpm-lock.yaml to add Vitest and all related packages (such as @vitest/expect, @vitest/mocker, @vitest/runner, @vitest/snapshot, @vitest/utils, and others required for the Vitest ecosystem). [1] [2] [3] [4] [5] [6] [7]
  • Added type definitions and assertion libraries (@types/chai, chai, deep-eql, etc.) to support testing. [1] [2] [3]

These updates collectively enable a robust, automated testing workflow for the project.

@ASafaeirad ASafaeirad merged commit 9439a2a into main Oct 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant